package com.haoting.mamba.news.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.haoting.common.utils.PageUtils;
import com.haoting.common.utils.Query;

import com.haoting.mamba.news.dao.CommentSupportDao;
import com.haoting.mamba.news.entity.CommentSupportEntity;
import com.haoting.mamba.news.service.CommentSupportService;


@Service("commentSupportService")
public class CommentSupportServiceImpl extends ServiceImpl<CommentSupportDao, CommentSupportEntity> implements CommentSupportService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<CommentSupportEntity> page = this.page(
                new Query<CommentSupportEntity>().getPage(params),
                new QueryWrapper<CommentSupportEntity>()
        );

        return new PageUtils(page);
    }

}